package jmine.tec.web.front.sample.extensions.rs;

import java.math.BigDecimal;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

import bancosys.tec.utils.date.Date;

/**
 * @author lundberg
 */
public class SampleForm {

    private String importantString;

    private Date importantDate;

    private BigDecimal importantNumber;

    private String meaninglessString;

    /**
     * @return the importantString
     */
    public String getImportantString() {
        return this.importantString;
    }

    /**
     * @return the importantDate
     */
    public Date getImportantDate() {
        return this.importantDate;
    }

    /**
     * @return the importantNumber
     */
    public BigDecimal getImportantNumber() {
        return this.importantNumber;
    }

    /**
     * @return the meaninglessString
     */
    public String getMeaninglessString() {
        return this.meaninglessString;
    }

    /**
     * @param importantString the importantString to set
     */
    public void setImportantString(String importantString) {
        this.importantString = importantString;
    }

    /**
     * @param importantDate the importantDate to set
     */
    public void setImportantDate(Date importantDate) {
        this.importantDate = importantDate;
    }

    /**
     * @param importantNumber the importantNumber to set
     */
    public void setImportantNumber(BigDecimal importantNumber) {
        this.importantNumber = importantNumber;
    }

    /**
     * @param meaninglessString the meaninglessString to set
     */
    public void setMeaninglessString(String meaninglessString) {
        this.meaninglessString = meaninglessString;
    }

    /**
     * @param value the importantString to set
     */
    public SampleForm importantString(String value) {
        this.importantString = value;
        return this;
    }

    /**
     * @param value the importantDate to set
     */
    public SampleForm importantDate(Date value) {
        this.importantDate = value;
        return this;
    }

    /**
     * @param value the importantNumber to set
     */
    public SampleForm importantNumber(BigDecimal value) {
        this.importantNumber = value;
        return this;
    }

    /**
     * @param value the meaninglessString to set
     */
    public SampleForm meaninglessString(String value) {
        this.meaninglessString = value;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

}
